﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PhoneRater
{
    public partial class EmployeesPhonesForm : Form
    {
        public EmployeesPhonesForm()
        {
            InitializeComponent();
        }

        private void EmployeesPhonesForm_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'employeesPhonesDataSet.EmploeeysPhonesSurnames' table. You can move, or remove it, as needed.
            this.emploeeysPhonesSurnamesTableAdapter.Fill(this.employeesPhonesDataSet.EmploeeysPhonesSurnames);
        }

        private void _btAssignPhone_Click(object sender, EventArgs e)
        {
            var form = new AssignPhoneForm();
            form.ShowDialog();
            this.emploeeysPhonesSurnamesTableAdapter.Fill(this.employeesPhonesDataSet.EmploeeysPhonesSurnames);
        }

        private void _btDeAssignPhone_Click(object sender, EventArgs e)
        {
            var form = new DeAssignPhoneForm();
            form.ShowDialog();
            this.emploeeysPhonesSurnamesTableAdapter.Fill(this.employeesPhonesDataSet.EmploeeysPhonesSurnames);
        }

        private void _btOk_Click(object sender, EventArgs e)
        {
            Close();
        }

    }
}
